<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<style type="text/css">
<!--
#Layer1 {
	position:absolute;
	margin-left:18px;
	margin-top:13px;
	width:50px;
	height:90px;
	z-index:1;
}
#Layer2 {
	position:absolute;
	margin-left:45px;
	margin-top:105px;
	width:130px;
	height:88px;
	z-index:2;
	font-size:11px;
	line-height:24px;
}

 .imgs{ 	margin:2px;
			float: left;
  }
  
  .froms{
     top:10px;
     margin-top:0ppx;
     float:right;
     color:#FFCC33;
  }
  .classname{
   text-align: center;
   font-size:25px;
   font-weight: bold;
   color:#FFCC33;
  }
-->
</style>
</head>
<body bgcolor="#FFFFCC">
<div class="classname">${tishi}</div> 
<div class="froms"> 
<form action="U_LoadUserOrImage.action" id="from1" name="from1">
班级:<input type="text" name="classname"><span onclick="_subimt()">搜索</span>
</form>
</div>
<br>
<br>
<br>
<hr>
<c:forEach items="${users}" var="user">
<div class="imgs">
<div id="Layer1" align="left"><img src="../Upimages/${user.imgNmae}" height="90" width="80" /></div>
<div id="Layer2">${user.uname}<br>${user.sex}<br>${user.classname}<br>${user.phone1}</div>
<div ><img src="images/user1.jpg"  height="200" width="120"/></div>
</div>
</c:forEach>
</body>
<script type="text/javascript">
  function _subimt(){
   var from =document.getElementById("from1");
    if(from.classname.value==""){
     alert("班级不能为空");
     return ;    
    }else{
     from.submit();
    }
  }
</script>
</html>

